<div class="row" ng-controller="HospitalCtrl">
    <div class="col-lg-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <strong>
                    <div ng-show="id">
                        修改医院信息
                    </div>
                    <div ng-hide="id">
                        添加医院
                    </div>
                </strong>
            </div>

            <div class="panel-body">
                <form class="form-horizontal" role="form" ng-submit="createOrUpdate()">
                    <div class="form-group" ng-show="error_msg">
                        <div class="col-sm-offset-1 col-sm-11">
                            <div class="alert alert-danger" role="alert">{{error_msg}}</div>
                        </div>
                    </div>

                    <input type="hidden" class="form-control" id="id" ng-model="id">

                    <div class="form-group span6">
                        <label for="name" class="col-sm-2 col-sm-offset-2 control-label">医院名称</label>
                        <div class="col-sm-4">
                            <input type="text" required="true"  class="form-control" id="name" placeholder="医院名称" ng-model="name">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="province" class="col-sm-2  col-sm-offset-2 control-label">所属省份</label>
                        <div class="col-sm-4 ">
                            <select ng-model="province" class="form-control" id = "province" ng-options="item._id as item.name for item in provinces">
                                <option value="">请选择省份</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group span6">
                        <label for="introduce" class="col-sm-2 col-sm-offset-2 control-label">医院简介</label>
                        <div class="col-sm-4">
                            <textarea class="form-control" required="true"  class="form-control" id="introduce" ng-model="introduce" rows="3"></textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-4">
                            <div class="checkbox">
                                <label>
                                    <input ng-model="type" type="checkbox"> 是否已经签约
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-actions">
                            <button type="submit" class="btn btn-default col-sm-offset-4 col-sm-1">确定</button>
                            <button type="button" class="btn col-sm-1 cancel_btn" ng-click="cancel()">取消</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>